define(["app"], function (app) {

    var deps = ["$cookieStore"];

    function service ($cookieStore) {
        return {
            setCurrentUser: function (user) {
                $cookieStore.put("user", user);
            },

            getCurrentUser: function () {
                return $cookieStore.get("user");
            },

            removeCurrentUser: function () {
                $cookieStore.remove("user");
            }
        };
    }

    service.$inject = deps;
    app.lazy.service("UserService", service);
});
